package com.superhero.common.pojo.vo.InspectorEnd;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


@Data
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "AccessInfoInput", description = "出入登记表入参封装")
public class AccessInfoInput {

    @NotNull(message = "体温不允许为空")
    @ApiModelProperty(name = "bodyTemperature", value = "体温", dataType = "Double", required = true)
    private Double bodyTemperature;

    @ApiModelProperty(name = "symptomDetail", value = "详细异常症状", dataType = "String", required = false)
    private String symptomDetail;

    @NotNull(message = "出入类型不允许为空")
    @ApiModelProperty(name = "inOrOut", value = "出入类型（0-进入小区，1-离开小区）", dataType = "Integer", required = true)
    private Integer inOrOut;

    @NotBlank(message = "访问地址不允许为空")
    @ApiModelProperty(name = "visitAddress", value = "访问地址", dataType = "Integer", required = true)
    private String visitAddress;

    @ApiModelProperty(name = "visitReason", value = "来访事由", dataType = "Integer", required = false)
    private String visitReason;

    @ApiModelProperty(name = "note", value = "备注", dataType = "Integer", required = false)
    private String note;

}
